function create_a_counter()
    local count = 0
    return function()
        count = count + 1
        return count
    end
end

c1 = create_a_counter()

print(c1())
print(c1())
